package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:28 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceProductDatabaseRelate implements java.io.Serializable {

  public WorkspaceProductDatabaseRelate() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private long productDatabaseId;

  /** Attribute productDatabaseId Be Seted Falg */
  private boolean productDatabaseIdSetted = false;

  /** Attribute productDatabaseId is Null Falg */
  private boolean productDatabaseIdNull = false;

  /**
   * Get productDatabaseId
   *
   * @return long
   */
  public final long getProductDatabaseId() {

    return productDatabaseId;
  }

  /**
   * Set productDatabaseId
   *
   * @param long
   */
  public final void setProductDatabaseId(long productDatabaseId) {

    this.productDatabaseId = productDatabaseId;

    this.productDatabaseIdSetted = true;

    this.setProductDatabaseIdNull(false);
  }

  /**
   * Get productDatabaseId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isProductDatabaseIdSetted() {
    return this.productDatabaseIdSetted;
  }

  /** Set productDatabaseId Null */
  public final void setProductDatabaseIdNull() {

    this.productDatabaseIdNull = true;
  }

  public final void setProductDatabaseIdNull(boolean aNullFlag) {

    this.productDatabaseIdNull = aNullFlag;
  }

  public final boolean isProductDatabaseIdNull() {

    return this.productDatabaseIdNull;
  }

  private String relateName;

  /** Attribute relateName Be Seted Falg */
  private boolean relateNameSetted = false;

  /** Attribute relateName is Null Falg */
  private boolean relateNameNull = false;

  /**
   * Get relateName
   *
   * @return String
   */
  public final String getRelateName() {

    if (isRelateNameNull()) {
      return null;
    } else {
      return StringUtils.trim(relateName);
    }
  }

  /**
   * Set relateName
   *
   * @param String
   */
  public final void setRelateName(String relateName) {

    this.relateName = StringUtils.trim(relateName);

    this.relateNameSetted = true;

    this.setRelateNameNull(this.relateName == null);
  }

  /**
   * Get relateName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRelateNameSetted() {
    return this.relateNameSetted;
  }

  /** Set relateName Null */
  public final void setRelateNameNull() {

    this.relateNameNull = true;
  }

  public final void setRelateNameNull(boolean aNullFlag) {

    this.relateNameNull = aNullFlag;
  }

  public final boolean isRelateNameNull() {

    return this.relateNameNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private String databaseName;

  /** Attribute databaseName Be Seted Falg */
  private boolean databaseNameSetted = false;

  /** Attribute databaseName is Null Falg */
  private boolean databaseNameNull = false;

  /**
   * Get databaseName
   *
   * @return String
   */
  public final String getDatabaseName() {

    if (isDatabaseNameNull()) {
      return null;
    } else {
      return StringUtils.trim(databaseName);
    }
  }

  /**
   * Set databaseName
   *
   * @param String
   */
  public final void setDatabaseName(String databaseName) {

    this.databaseName = StringUtils.trim(databaseName);

    this.databaseNameSetted = true;

    this.setDatabaseNameNull(this.databaseName == null);
  }

  /**
   * Get databaseName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDatabaseNameSetted() {
    return this.databaseNameSetted;
  }

  /** Set databaseName Null */
  public final void setDatabaseNameNull() {

    this.databaseNameNull = true;
  }

  public final void setDatabaseNameNull(boolean aNullFlag) {

    this.databaseNameNull = aNullFlag;
  }

  public final boolean isDatabaseNameNull() {

    return this.databaseNameNull;
  }

  private String databaseType;

  /** Attribute databaseType Be Seted Falg */
  private boolean databaseTypeSetted = false;

  /** Attribute databaseType is Null Falg */
  private boolean databaseTypeNull = false;

  /**
   * Get databaseType
   *
   * @return String
   */
  public final String getDatabaseType() {

    if (isDatabaseTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(databaseType);
    }
  }

  /**
   * Set databaseType
   *
   * @param String
   */
  public final void setDatabaseType(String databaseType) {

    this.databaseType = StringUtils.trim(databaseType);

    this.databaseTypeSetted = true;

    this.setDatabaseTypeNull(this.databaseType == null);
  }

  /**
   * Get databaseType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDatabaseTypeSetted() {
    return this.databaseTypeSetted;
  }

  /** Set databaseType Null */
  public final void setDatabaseTypeNull() {

    this.databaseTypeNull = true;
  }

  public final void setDatabaseTypeNull(boolean aNullFlag) {

    this.databaseTypeNull = aNullFlag;
  }

  public final boolean isDatabaseTypeNull() {

    return this.databaseTypeNull;
  }

  private String databaseIp;

  /** Attribute databaseIp Be Seted Falg */
  private boolean databaseIpSetted = false;

  /** Attribute databaseIp is Null Falg */
  private boolean databaseIpNull = false;

  /**
   * Get databaseIp
   *
   * @return String
   */
  public final String getDatabaseIp() {

    if (isDatabaseIpNull()) {
      return null;
    } else {
      return StringUtils.trim(databaseIp);
    }
  }

  /**
   * Set databaseIp
   *
   * @param String
   */
  public final void setDatabaseIp(String databaseIp) {

    this.databaseIp = StringUtils.trim(databaseIp);

    this.databaseIpSetted = true;

    this.setDatabaseIpNull(this.databaseIp == null);
  }

  /**
   * Get databaseIp Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDatabaseIpSetted() {
    return this.databaseIpSetted;
  }

  /** Set databaseIp Null */
  public final void setDatabaseIpNull() {

    this.databaseIpNull = true;
  }

  public final void setDatabaseIpNull(boolean aNullFlag) {

    this.databaseIpNull = aNullFlag;
  }

  public final boolean isDatabaseIpNull() {

    return this.databaseIpNull;
  }

  private String databasePort;

  /** Attribute databasePort Be Seted Falg */
  private boolean databasePortSetted = false;

  /** Attribute databasePort is Null Falg */
  private boolean databasePortNull = false;

  /**
   * Get databasePort
   *
   * @return String
   */
  public final String getDatabasePort() {

    if (isDatabasePortNull()) {
      return null;
    } else {
      return StringUtils.trim(databasePort);
    }
  }

  /**
   * Set databasePort
   *
   * @param String
   */
  public final void setDatabasePort(String databasePort) {

    this.databasePort = StringUtils.trim(databasePort);

    this.databasePortSetted = true;

    this.setDatabasePortNull(this.databasePort == null);
  }

  /**
   * Get databasePort Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDatabasePortSetted() {
    return this.databasePortSetted;
  }

  /** Set databasePort Null */
  public final void setDatabasePortNull() {

    this.databasePortNull = true;
  }

  public final void setDatabasePortNull(boolean aNullFlag) {

    this.databasePortNull = aNullFlag;
  }

  public final boolean isDatabasePortNull() {

    return this.databasePortNull;
  }

  private String databaseServiceId;

  /** Attribute databaseServiceId Be Seted Falg */
  private boolean databaseServiceIdSetted = false;

  /** Attribute databaseServiceId is Null Falg */
  private boolean databaseServiceIdNull = false;

  /**
   * Get databaseServiceId
   *
   * @return String
   */
  public final String getDatabaseServiceId() {

    if (isDatabaseServiceIdNull()) {
      return null;
    } else {
      return StringUtils.trim(databaseServiceId);
    }
  }

  /**
   * Set databaseServiceId
   *
   * @param String
   */
  public final void setDatabaseServiceId(String databaseServiceId) {

    this.databaseServiceId = StringUtils.trim(databaseServiceId);

    this.databaseServiceIdSetted = true;

    this.setDatabaseServiceIdNull(this.databaseServiceId == null);
  }

  /**
   * Get databaseServiceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDatabaseServiceIdSetted() {
    return this.databaseServiceIdSetted;
  }

  /** Set databaseServiceId Null */
  public final void setDatabaseServiceIdNull() {

    this.databaseServiceIdNull = true;
  }

  public final void setDatabaseServiceIdNull(boolean aNullFlag) {

    this.databaseServiceIdNull = aNullFlag;
  }

  public final boolean isDatabaseServiceIdNull() {

    return this.databaseServiceIdNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceProductDatabaseRelate) == false) {
      return false;
    }
    WorkspaceProductDatabaseRelate other = (WorkspaceProductDatabaseRelate) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("productDatabaseId=");
    buffer.append(this.productDatabaseId);

    buffer.append("relateName=");
    buffer.append(this.relateName);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("databaseName=");
    buffer.append(this.databaseName);

    buffer.append("databaseType=");
    buffer.append(this.databaseType);

    buffer.append("databaseIp=");
    buffer.append(this.databaseIp);

    buffer.append("databasePort=");
    buffer.append(this.databasePort);

    buffer.append("databaseServiceId=");
    buffer.append(this.databaseServiceId);

    buffer.append("]");

    return buffer.toString();
  }
}
